#ifndef ALLERR
#define ALLERR
#include "token.h"
typedef enum{
	lexical,syntax,range
}ERRclass;
void post_error(ERRclass err,int c,int c2)
{
	switch(err)
	{
		case lexical:
			printf("[ERROR] in lexical.(%c)\n",c);
			return;
		case range:
			printf("[ERROR] in range.(%c)\n",c);
			return;
		case syntax:
			if(c2==-1)printf("[ERROR] in syntax of %s\n",typeTable[c]);
			else
			printf("[ERROR] in syntax between %s and %s\n",typeTable[c],typeTable[c2]);
			return;
	}
}
#endif
